package gdut.jmxywz.been;

import java.util.HashSet;
import java.util.Set;

/**
 * Roles entity. @author MyEclipse Persistence Tools
 */

public class Roles implements java.io.Serializable {

	// Fields

	private Integer roleId;
	private String roleName;
	private String roleDescripe;
	private Set teacherRoles = new HashSet(0);
	private Set roleFunctions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Roles() {
	}

	/** minimal constructor */
	public Roles(String roleName) {
		this.roleName = roleName;
	}

	/** full constructor */
	public Roles(String roleName, String roleDescripe, Set teacherRoles,
			Set roleFunctions) {
		this.roleName = roleName;
		this.roleDescripe = roleDescripe;
		this.teacherRoles = teacherRoles;
		this.roleFunctions = roleFunctions;
	}

	// Property accessors

	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDescripe() {
		return this.roleDescripe;
	}

	public void setRoleDescripe(String roleDescripe) {
		this.roleDescripe = roleDescripe;
	}

	public Set getTeacherRoles() {
		return this.teacherRoles;
	}

	public void setTeacherRoles(Set teacherRoles) {
		this.teacherRoles = teacherRoles;
	}

	public Set getRoleFunctions() {
		return this.roleFunctions;
	}

	public void setRoleFunctions(Set roleFunctions) {
		this.roleFunctions = roleFunctions;
	}

}